//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   sampler2D $DepthBuffer;
//   float4 $FalloffFactors;
//   float4 $LightColor;
//   sampler2D $NormalBuffer;
//   float4 $SpotDirection;
//   float4 $ViewSpaceLightPosition;
//   float4 GlobalGBufferOffset;
//   float4 GlobalGBufferScale;
//   float4 GlobalPosDecodingParams;
//
//
// Registers:
//
//   Name                    Reg   Size
//   ----------------------- ----- ----
//   $LightColor             c10      1
//   $ViewSpaceLightPosition c12      1
//   $FalloffFactors         c13      1
//   $SpotDirection          c14      1
//   GlobalGBufferOffset     c218     1
//   GlobalPosDecodingParams c219     1
//   GlobalGBufferScale      c223     1
//   $NormalBuffer           s6       1
//   $DepthBuffer            s10      1
//

    ps_3_0
    def c0, 2, -1, 1, 0
    dcl vPos.xy
    dcl_2d s6
    dcl_2d s10
    mov r0, c223
    mad r0, vPos.xyxy, r0, c218
    texld_pp r1, r0, s6
    mad_pp r1.xyz, r1.yzww, c0.x, c0.y
    dp2add_pp r2.x, r1, -r1, c0.z
    rsq_pp r2.x, r2.x
    rcp_pp r2.x, r2.x
    mul_pp r1.w, r1.z, r2.x
    texld_pp r2, r0, s10
    mad r0.xyz, r0.zwzw, c0.zzww, c0.wwzw
    mad r0.w, r2.x, c219.z, c219.w
    rcp r0.w, r0.w
    mad r0.xyz, r0, -r0.w, c12
    nrm r2.xyz, r0
    dp3 r0.x, r0, c14
    mul r0.x, r0.x, r0.x
    mad_sat_pp r0.x, c13.x, r0.x, c13.y
    dp3_sat_pp r0.y, r1.xyww, r2
    dp3 r0.z, r2, c14
    mad_sat_pp r0.z, c13.z, -r0.z, c13.w
    mul_pp r0.x, r0.z, r0.x
    mul r0.xzw, r0.x, c10.xyyz
    mul oC0.xyz, r0.y, r0.xzww
    mov oC0.w, c0.w

// approximately 27 instruction slots used (2 texture, 25 arithmetic)
 